Transparently converting a TLS session connection to facilitate session resumption

ABSTRACT

A network-based appliance includes a mechanism to provide TLS inspection with session resumption, but without requiring that a session cache be maintained. To this end, the inspector is configured to cause the TLS client to participate in maintaining the session context, in effect on behalf of the TLS inspector. In operation, when the inspector first receives a session ID from the TLS server, the inspector generates and issues to the client a session ticket that includes the original session ID and other session context information. In this manner, the inspector converts the Session ID-based connection to a Session Ticket-based connection. The session ticket is encrypted by the inspector to secure the session information. When the TLS client presents the session ticket to resume the TLS connection, the inspector decrypts the ticket and retrieves the session ID from it directly. The inspector then uses the original session ID to resume the TLS session.

BACKGROUND OF THE INVENTION Technical Field

This disclosure relates generally to information security onnetwork-connected appliances.

Background of the Related Art

Security threats are continually evolving. With the rapid growth ofcutting-edge web applications and increased file sharing, activitiesthat may have been considered harmless in the past could becomepotential openings for attackers. Traditional security means, such asanti-malware software and firewalls, have become easier to bypass. Thus,there is a significant need for more advanced, proactive threatprotection that can help provide comprehensive security against new andemerging threats.

Network-connected, non-display devices (“appliances) are ubiquitous inmany computing environments. For example, appliances built purposely forperforming traditional middleware service oriented architecture (SOA)functions are prevalent across certain computer environments. SOAmiddleware appliances may simplify, help secure or accelerate XML andWeb services deployments while extending an existing SOA infrastructureacross an enterprise. The utilization of middleware-purposed hardwareand a lightweight middleware stack can address the performance burdenexperienced by conventional software solutions. In addition, theappliance form-factor provides a secure, consumable packaging forimplementing middleware SOA functions. One particular advantage thatthese types of devices provide is to offload processing from back-endsystems. To this end, it is well-known to use such middleware devices toperform computationally-expensive processes related to network security.For example, network intrusion prevention system (IPS) appliances aredesigned to sit at the entry points to an enterprise network to protectbusiness-critical assets, such as internal networks, servers, endpointsand applications, from malicious threats.

The use of Secure Sockets Layer (SSL) and/or Transport Layer Security(TLS)-based encryption for network communications generally inhibits theability to identify and mitigate threat traffic from within the network.It is now estimated that upwards of two-thirds or more of all businessnetwork traffic is conveyed over SSL/TLS. This means that organizationsrelying on network communications typically are unable to protect (fromthe network) the endpoints in their enterprise that may be susceptibleto such threats. Indeed, the vast majority of SSL/TLS communications useonly server authentication, i.e., the server is authenticated via theSSL/TLS protocols to the client, but the client is unauthenticated withrespect to the server. This authentication asymmetry provides theopportunity for a process to interpose itself between client and serverin such a way as to enable decryption of communications and inspectionof its contents. Such a “man-in-the-middle” (MITM) process may bemalicious, or it may be used for legitimate reasons, such as packetinspection (for threat detection).

Thus, it is known to provide a transparent (MITM) proxy between a clientand a server that can be configured to create and manage two separateSSL/TLS sessions, one as the client to the target server, and another asa server to the initiating client. The intermediate proxy thus appearsto the server as a client, and to the client as the intended server.Communications initiated from the client, and any responses receivedfrom the server, theoretically are then available for inspection andsubsequent action by a SSL/TLS inspector.

When performing man-in-the-middle inspection of a SSL/TLS connection,support by the SSL/TLS inspector of TLS session resumption is animportant requirement. Conventionally, and as well-known, TLS serversprovide session resumption to clients (irrespective of the MITM)according to one of two (2) distinct methods, namely Session ID (RFC4507), and Session Ticket (RFC 5077). Session ID was the first mechanisminvented to speed up the SSL/TLS handshake and to enable sessionresumption. In Session ID, all of the session information is stored onthe server side. Session ID session resumption has severaldisadvantages, the foremost being that it is a performance bottleneckdue to the requirement of spending time and space to lookup a givensession ID when there are a large number of cached sessions. Anothermajor drawback of Session ID is that one session ID can only work on oneserver, which makes a deployment very hard to scale unless sessioncaches are synchronized across the servers. To address Session IDdeficiencies, Session Ticket was developed. Session Ticket is amechanism that enables the TLS server to resume sessions and avoidkeeping per-client session state. To this end, the TLS serverencapsulates the session state into a ticket and forward it to theclient. The ticket is signed by service provider. The client cansubsequently resume a session using the obtained ticket. When the serverlater receives a ticket and determines it is signed by the serviceprovider, it will honor every setting stored in the ticket. SessionTicket is widely used among web servers due to its scalability and lessresource overhead on the server side.

To support both Session ID and Session Ticket in TLS inspection, cachingat the inspector has been necessary. This is because there is nopractical way to decrypt the session ticket, as the encryption mechanismis controlled by the application/service and not defined by the SSL/TLSspecification. Maintaining session cache within the inspector, however,has several disadvantages, including poor scalability due to difficultyin distributing the session cache, limitations in session cache size dueto storage and memory restrictions that can cause the proxy to run outof cache, CPU bounds that complicate cache loop-up time and that limitthe type of hash algorithms that can be implemented, as well asvulnerability to denial-of-service attack by an attacker who couldintentionally flush out entries in the session cache and thereby bypassinspection.

There remains a need to provide TLS session resumption in a TLSinspector that provides Session ID support but that overcomes these andrelated deficiencies in prior approaches.

BRIEF SUMMARY

A network-based appliance includes a mechanism to enable the applianceto provide TLS inspection with Session ID-based session resumption, butwithout requiring that a session cache be maintained in the inspector.To this end, the original session ID returned from a TLS server is firstembedded into a new session ticket generated at the inspector and, as aconsequence, the Session ID connection is converted into a SessionTicket connection transparently. The inspector itself is configuredwithout a session cache and thus no longer maintains the mapping betweena session ticket (newly-generated at the inspector) and the sessioncontext. Instead, the inspector is configured to cause the TLS client toparticipate in maintaining the session context, in effect on behalf ofthe TLS inspector.

In operation, when the inspector first receives the session ID from theTLS server, the inspector embeds it into the new session ticket. Neitherthe session ID received from the TLS server nor the new session ticket,however, are cached at the inspector. The newly-generated session ticketpreferably is encrypted by the inspector to secure the sessioninformation, and the encrypted session ticket is then returned to therequesting client. When the TLS client presents the session ticket (backto the inspector) to resume the TLS connection, the inspector decryptsthe ticket and retrieves the session context from it directly. Theinspector then uses the original session ID to resume the TLS session tothe TLS server. This approach obviates any cache lookup or even therequirement to maintain local session cache at the TLS inspector.Rather, in effect the session ticket generated at the inspector (and inwhich the session ID is saved) becomes the cache for the session IDitself.

Generalizing, and according to a first aspect of this disclosure, amethod is operative within an intermediary positioned between a clientand a server and that provides a TLS inspection function. Upon receiptfrom the TLS server of a session ID, and instead of caching it in asession cache, a new session ticket is generated that include sessiondata associated with the client-to-inspector connection, the session ID,and session data associated with the inspector-to-server connection. Anencryption function is then applied to the new session ticket to securethe session information. The encrypted session ticket is then deliveredto the requesting TLS client. When that ticket is later received backfrom the TLS client, it is decrypted to recover the original sessionticket and the session context information. Using the informationrecovered, the TLS session is then resumed with the TLS server using thesession ID originally received.

According to a second aspect of this disclosure, an apparatus ispositioned between a Transport Layer Security (TLS) client and a TLSserver to provide a TLS inspection function during a TLS session. Theapparatus comprises a set of one or more hardware processors, andcomputer memory holding computer program instructions executed by thehardware processors to perform a set of operations such as the methodsteps described above.

According to a third aspect of this disclosure, a computer programproduct in a non-transitory computer readable medium for use in a dataprocessing system is described. The data processing system is positionedbetween a Transport Layer Security (TLS) client and a TLS server toprovide a TLS inspection function during a TLS session. The computerprogram product holds computer program instructions executed in the dataprocessing system and configured to perform operations such as themethod steps described above.

The foregoing has outlined some of the more pertinent features of thedisclosed subject matter. These features should be construed to bemerely illustrative. Many other beneficial results can be attained byapplying the disclosed subject matter in a different manner or bymodifying the subject matter as will be described.

BRIEF DESCRIPTION OF THE DRAWINGS

For a more complete understanding of the subject matter and theadvantages thereof, reference is now made to the following descriptionstaken in conjunction with the accompanying drawings, in which:

FIG. 1 depicts an exemplary block diagram of a distributed dataprocessing environment in which exemplary aspects of the illustrativeembodiments may be implemented;

FIG. 2 is an exemplary block diagram of a data processing system inwhich exemplary aspects of the illustrative embodiments may beimplemented;

FIG. 3 illustrates an exemplary network-based secure appliance in whichthe disclosed subject matter may be implemented;

FIG. 4 illustrates how a conventional SSL/TLS communication is processedin a man-in-the-middle appliance to facilitate inspection of securetraffic;

FIG. 5 illustrates TLS session resumption using a TLS inspector thatincorporates a session cache;

FIG. 6 depicts TLS session resumption wherein the TLS inspector providescacheless session ticket support;

FIG. 7 depicts how a Session ID connection is converted transparentlyinto a Session Ticket connection according to a first aspect of thisdisclosure; and

FIG. 8 depicts how a session ticket generated according to the techniquein FIG. 7 is then used to facilitate Session ID-based session resumptionat the inspector.

DETAILED DESCRIPTION OF AN ILLUSTRATIVE EMBODIMENT

With reference now to the drawings and in particular with reference toFIGS. 1-2, exemplary diagrams of data processing environments areprovided in which illustrative embodiments of the disclosure may beimplemented. It should be appreciated that FIGS. 1-2 are only exemplaryand are not intended to assert or imply any limitation with regard tothe environments in which aspects or embodiments of the disclosedsubject matter may be implemented. Many modifications to the depictedenvironments may be made without departing from the spirit and scope ofthe present invention.

Client-Server Technologies

With reference now to the drawings, FIG. 1 depicts a pictorialrepresentation of an exemplary distributed data processing system inwhich aspects of the illustrative embodiments may be implemented.Distributed data processing system 100 may include a network ofcomputers in which aspects of the illustrative embodiments may beimplemented. The distributed data processing system 100 contains atleast one network 102, which is the medium used to provide communicationlinks between various devices and computers connected together withindistributed data processing system 100. The network 102 may includeconnections, such as wire, wireless communication links, or fiber opticcables.

In the depicted example, server 104 and server 106 are connected tonetwork 102 along with storage unit 108. In addition, clients 110, 112,and 114 are also connected to network 102. These clients 110, 112, and114 may be, for example, personal computers, network computers, or thelike. In the depicted example, server 104 provides data, such as bootfiles, operating system images, and applications to the clients 110,112, and 114. Clients 110, 112, and 114 are clients to server 104 in thedepicted example. Distributed data processing system 100 may includeadditional servers, clients, and other devices not shown.

In the depicted example, distributed data processing system 100 is theInternet with network 102 representing a worldwide collection ofnetworks and gateways that use the Transmission ControlProtocol/Internet Protocol (TCP/IP) suite of protocols to communicatewith one another. At the heart of the Internet is a backbone ofhigh-speed data communication lines between major nodes or hostcomputers, consisting of thousands of commercial, governmental,educational and other computer systems that route data and messages. Ofcourse, the distributed data processing system 100 may also beimplemented to include a number of different types of networks, such asfor example, an intranet, a local area network (LAN), a wide areanetwork (WAN), or the like. As stated above, FIG. 1 is intended as anexample, not as an architectural limitation for different embodiments ofthe disclosed subject matter, and therefore, the particular elementsshown in FIG. 1 should not be considered limiting with regard to theenvironments in which the illustrative embodiments of the presentinvention may be implemented.

With reference now to FIG. 2, a block diagram of an exemplary dataprocessing system is shown in which aspects of the illustrativeembodiments may be implemented. Data processing system 200 is an exampleof a computer, such as client 110 in FIG. 1, in which computer usablecode or instructions implementing the processes for illustrativeembodiments of the disclosure may be located.

With reference now to FIG. 2, a block diagram of a data processingsystem is shown in which illustrative embodiments may be implemented.Data processing system 200 is an example of a computer, such as server104 or client 110 in FIG. 1, in which computer-usable program code orinstructions implementing the processes may be located for theillustrative embodiments. In this illustrative example, data processingsystem 200 includes communications fabric 202, which providescommunications between processor unit 204, memory 206, persistentstorage 208, communications unit 210, input/output (I/O) unit 212, anddisplay 214.

Processor unit 204 serves to execute instructions for software that maybe loaded into memory 206. Processor unit 204 may be a set of one ormore processors or may be a multi-processor core, depending on theparticular implementation. Further, processor unit 204 may beimplemented using one or more heterogeneous processor systems in which amain processor is present with secondary processors on a single chip. Asanother illustrative example, processor unit 204 may be a symmetricmulti-processor (SMP) system containing multiple processors of the sametype.

Memory 206 and persistent storage 208 are examples of storage devices. Astorage device is any piece of hardware that is capable of storinginformation either on a temporary basis and/or a permanent basis. Memory206, in these examples, may be, for example, a random access memory orany other suitable volatile or non-volatile storage device. Persistentstorage 208 may take various forms depending on the particularimplementation. For example, persistent storage 208 may contain one ormore components or devices. For example, persistent storage 208 may be ahard drive, a flash memory, a rewritable optical disk, a rewritablemagnetic tape, or some combination of the above. The media used bypersistent storage 208 also may be removable. For example, a removablehard drive may be used for persistent storage 208.

Communications unit 210, in these examples, provides for communicationswith other data processing systems or devices. In these examples,communications unit 210 is a network interface card. Communications unit210 may provide communications through the use of either or bothphysical and wireless communications links.

Input/output unit 212 allows for input and output of data with otherdevices that may be connected to data processing system 200. Forexample, input/output unit 212 may provide a connection for user inputthrough a keyboard and mouse. Further, input/output unit 212 may sendoutput to a printer. Display 214 provides a mechanism to displayinformation to a user.

Instructions for the operating system and applications or programs arelocated on persistent storage 208. These instructions may be loaded intomemory 206 for execution by processor unit 204. The processes of thedifferent embodiments may be performed by processor unit 204 usingcomputer implemented instructions, which may be located in a memory,such as memory 206. These instructions are referred to as program code,computer-usable program code, or computer-readable program code that maybe read and executed by a processor in processor unit 204. The programcode in the different embodiments may be embodied on different physicalor tangible computer-readable media, such as memory 206 or persistentstorage 208.

Program code 216 is located in a functional form on computer-readablemedia 218 that is selectively removable and may be loaded onto ortransferred to data processing system 200 for execution by processorunit 204. Program code 216 and computer-readable media 218 form computerprogram product 220 in these examples. In one example, computer-readablemedia 218 may be in a tangible form, such as, for example, an optical ormagnetic disc that is inserted or placed into a drive or other devicethat is part of persistent storage 208 for transfer onto a storagedevice, such as a hard drive that is part of persistent storage 208. Ina tangible form, computer-readable media 218 also may take the form of apersistent storage, such as a hard drive, a thumb drive, or a flashmemory that is connected to data processing system 200. The tangibleform of computer-readable media 218 is also referred to ascomputer-recordable storage media. In some instances,computer-recordable media 218 may not be removable.

Alternatively, program code 216 may be transferred to data processingsystem 200 from computer-readable media 218 through a communicationslink to communications unit 210 and/or through a connection toinput/output unit 212. The communications link and/or the connection maybe physical or wireless in the illustrative examples. Thecomputer-readable media also may take the form of non-tangible media,such as communications links or wireless transmissions containing theprogram code. The different components illustrated for data processingsystem 200 are not meant to provide architectural limitations to themanner in which different embodiments may be implemented. The differentillustrative embodiments may be implemented in a data processing systemincluding components in addition to or in place of those illustrated fordata processing system 200. Other components shown in FIG. 2 can bevaried from the illustrative examples shown. As one example, a storagedevice in data processing system 200 is any hardware apparatus that maystore data. Memory 206, persistent storage 208, and computer-readablemedia 218 are examples of storage devices in a tangible form.

In another example, a bus system may be used to implement communicationsfabric 202 and may be comprised of one or more buses, such as a systembus or an input/output bus. Of course, the bus system may be implementedusing any suitable type of architecture that provides for a transfer ofdata between different components or devices attached to the bus system.Additionally, a communications unit may include one or more devices usedto transmit and receive data, such as a modem or a network adapter.Further, a memory may be, for example, memory 206 or a cache such asfound in an interface and memory controller hub that may be present incommunications fabric 202.

Computer program code for carrying out operations of the presentinvention may be written in any combination of one or more programminglanguages, including an object-oriented programming language such asJava™, Smalltalk, C++, C#, Objective-C, or the like, and conventionalprocedural programming languages. The program code may execute entirelyon the user's computer, partly on the user's computer, as a stand-alonesoftware package, partly on the user's computer and partly on a remotecomputer, or entirely on the remote computer or server. In the latterscenario, the remote computer may be connected to the user's computerthrough any type of network, including a local area network (LAN) or awide area network (WAN), or the connection may be made to an externalcomputer (for example, through the Internet using an Internet ServiceProvider).

Those of ordinary skill in the art will appreciate that the hardware inFIGS. 1-2 may vary depending on the implementation. Other internalhardware or peripheral devices, such as flash memory, equivalentnon-volatile memory, or optical disk drives and the like, may be used inaddition to or in place of the hardware depicted in FIGS. 1-2. Also, theprocesses of the illustrative embodiments may be applied to amultiprocessor data processing system, other than the SMP systemmentioned previously, without departing from the spirit and scope of thedisclosed subject matter.

As will be seen, the techniques described herein may operate inconjunction within the standard client-server paradigm such asillustrated in FIG. 1 in which client machines communicate with anInternet-accessible Web-based portal executing on a set of one or moremachines. End users operate Internet-connectable devices (e.g., desktopcomputers, notebook computers, Internet-enabled mobile devices, or thelike) that are capable of accessing and interacting with the portal.Typically, each client or server machine is a data processing systemsuch as illustrated in FIG. 2 comprising hardware and software, andthese entities communicate with one another over a network, such as theInternet, an intranet, an extranet, a private network, or any othercommunications medium or link. A data processing system typicallyincludes one or more processors, an operating system, one or moreapplications, and one or more utilities. The applications on the dataprocessing system provide native support for Web services including,without limitation, support for HTTP, SOAP, XML, WSDL, UDDI, and WSFL,among others. Information regarding SOAP, WSDL, UDDI and WSFL isavailable from the World Wide Web Consortium (W3C), which is responsiblefor developing and maintaining these standards; further informationregarding HTTP and XML is available from Internet Engineering Task Force(IETF). Familiarity with these standards is presumed.

As further background, Secure Sockets Layer/Transport Layer Security(SSL/TLS) is a well-known cryptographic protocol that is used to securecommunications over networks such as the Internet. Cryptographicprotocols such as SSL/TLS are often based on public key cryptographicsystems, such as the RSA (Rivest, Shamir and Adelman) encryptionalgorithm. For a traditional RSA-based SSL session, the two sides of aconnection agree upon a “pre-master secret” (PMS) which is used togenerate the parameters for the remainder of the session. Typically, thetwo sides use RSA asymmetric encryption to establish the pre-mastersecret without exchanging the actual value in plaintext. In operation,the SSL client generates the pre-master secret and encrypts it with theSSL server's publicly available RSA key. This generates an encryptedpre-master secret (ePMS), which is then provided to the SSL server. TheSSL server has a private decryption key, which is then used to decryptthe encrypted pre-master secret. At this point, both the client and theserver have the original pre-master secret and can use it to generatethe symmetric key used for actual encrypted and secure data exchange.

Encrypted traffic on the web occurs by a chain of trust. Each web serverhas a certificate that is presents to each client (usually a webbrowser) to indicate that they are who they say they are. Web serversoften get these certificates from an authority (a Certificate Authority,or CA) that can vouch for the legitimacy of the web server. The server'scertificate indicates the authority from which the certificate wasobtained (the “issuer”) Web browsers typically have a list of issuersthat they trust. When a web browser is presented with a certificate froma web server, the browser will check the issuer and match it against itstrusted list. If a match is found, the connection will continue; if amatch is not found, the browser usually will present a warning andperhaps reject the connection. A CA is not necessarily a special entityother than the fact that it is trusted. Any entity can set itself up totrust, or sign, certificates. A certificate can trust itself, which isreferred to as a self-signed certificate. To interoperate with a clientusing SSL/TLS, it is necessary to create certificates that the clientwill implicitly trust. With respect to a network appliance (as describedbelow), it is presumed that an administrator can configure enterpriseclients to trust the appliance to sign certificates. In effect, theissuer of the appliance then is on the browser's list of trustedissuers.

Network-Connected Secure Appliances

A network appliance typically is a rack-mounted device. The deviceincludes physical security that enables the appliance to serve as asecure vault for sensitive information. Typically, the appliance ismanufactured, pre-loaded with software, and then deployed within or inassociation with an enterprise or other network operating environment;alternatively, the box may be positioned locally and then provisionedwith standard or customized middleware virtual images that can besecurely deployed and managed, e.g., within a private or an on premisecloud computing environment. The appliance may include hardware andfirmware cryptographic support, possibly to encrypt data on hard disk.No users, including administrative users, can access any data onphysical disk. In particular, preferably the operating system (e.g.,Linux) locks down the root account and does not provide a command shell,and the user does not have file system access. Typically, the appliancedoes not include a display device, a CD or other optical drive, or anyUSB, Firewire or other ports to enable devices to be connected thereto.It is designed to be a sealed and secure environment with limitedaccessibility and then only be authenticated and authorized individuals.

Referring to FIG. 3, a representative operating environment includes thephysical appliance 300, which interfaces to a network 302. The appliancemay be implemented using a data processing system such as describedabove with respect to FIG. 2, and it may represent one of the servers(or clients) shown in FIG. 1. Typically, the appliance 300 includes aWeb 2.0-based user interface (UI), a command line interface (CLI), andREST-based application programming interfaces (APIs). In this example,the appliance has been provisioned with an image comprising an operatingsystem 304, an application server 306, an HTTP server 308, and otherapplication programs 310. Additional software solutions (not shown) maybe included within the image. These software elements may comepre-loaded on the appliance, which may include other data (e.g.,templates, scripts, files, etc.). The particular software configurationof course will depend on the use being made of the appliance. Theappliance includes one of more storage devices (e.g., disk 315). Thetype and number of storage devices may vary.

Interception, Decryption and Inspection of Secure Network Communications

By way of further background, FIG. 4 illustrates the basic operation ofa known man-in-the-middle (MITM) device 400 for intercepting, decryptingand inspecting secure network communications according to a knowntechnique. The device is implemented within a secure network appliancesuch as described above and illustrated in FIG. 3. More generally, thedevice is a computing system such as shown in FIG. 1.

As illustrated, the device 400 is connected between a client 402 and aserver 404. The client and server are provisioned to securecommunications using SSL or TLS. Familiarity with SSL/TLS is presumed.In this embodiment, the device 400 provides a transparent (orman-in-the-middle) proxy between the client 402 and the server 404 bycreating and managing two (2) separate SSL/TLS sessions, one as a clientprocess X_(ss) 406 to the target server 404, and another as a serverprocess X_(cs) 408 to the initiating client 402. The X_(ss) and X_(cs)components are sometimes referred to herein as SSL instances, where anSSL instance typically is a piece of code that makes up an SSL session.An SSL session (or session context) is the communication itself thatoccurs between two endpoints. The intermediate proxy 400 thus appears tothe server 404 as a client, and to the client 402 as the intendedserver. Communications initiated from the client 402, and any responsesreceived from the server 404, are then available for inspection (orother processing, such as rewrite) and subsequent action. To that end,the device 400 may include a protocol analysis module (e.g., IBMSecurity Network Protection PAM), which provides a packet inspectionfunction to identify and possibly mitigate network threats. Theparticular details of the module (or other packet inspectionapplications that may be supported) are not an aspect of thisdisclosure.

In operation, and as seen in FIG. 4, following an initial TCP handshake(not shown), the client 402 generates the SSL/TLS session initiationrequest (the Client Hello) to begin the SSL/TLS handshake to the server.This is step 1. The proxy intercepts this connection and directs it tothe client-facing server component X_(cs) 408. At step 2, the Xcscomponent reads the client hello, interprets the data, and responds tothe client 402, typically with a server hello, a certificate, and aserver done message. In step 3, a brand new SSL connection is configuredand setup inside the appliance. This is a server-facing connection thatis initiated by the X_(ss). The X_(ss) then generates a new client hello(referred to here as ClientHello2 to distinguish it from the ClientHelloin step 1), and sends the (new) client hello to the server. In step 4,the server 404 reads the new client hello and responds withServerHello2, Certificate2 and ServerDone2. These messages are yet againdistinct from the messages issued by X_(cs) to the client in step 2. Asa result, there are two (2) distinct connections, one between the client402 and X_(cs) 408, and the other between X_(ss) 406 and the server 404.At this point, if the MITM processing (e.g., by the PAM or otherapplication) determines that this is not a (client-server) connection isdesired to be inspected, the system either must continue to inspect theconnection (perhaps ignoring the results), or shut it down entirely. Thedetermination may be based in any convenient manner, e.g., by performinga policy-based rule match against information in the certificatereceived from the server (Certificate2 above).

Cacheless Session Ticket Support in TLS Inspection

With the above as background, an approach to cacheless session ticketsupport in TLS inspection is now described. Familiarity with TLS SessionTicket according to Internet RFC 5077 is presumed. A representativecommercial product in which the technique may be implemented is IBM®QRadar® Network Security (XGS) (formerly known as IBM Security NetworkProtection (XGS)), a next-generation intrusion prevention system (IPS).Of course, the identification of this commercial product is not intendedto be limiting, as the approach may be carried out in any intermediarydevice, appliance, product or system.

In one embodiment, a network-based appliance such as described includesa mechanism to enable the appliance to provide TLS inspection withsession resumption, but without requiring that a session cache bemaintained in the inspector. To this end, the inspector is configuredwithout a session cache (or, in the alternative, with a cache that isnot used) and thus no longer maintains the mapping between a sessionticket (received from the TLS server) and the session context. Instead,the inspector is configured to cause the TLS client to participate inmaintaining the session context, in effect on behalf of the TLSinspector.

In operation, when the inspector first receives the session ticket fromthe TLS server, and in lieu of caching it, the inspector generates andissues to the client a composited ticket that includes the originalticket and session context information that contains the session key.The composited ticket (or composited session ticket) preferably isencrypted by the inspector to secure the session information. When theTLS client presents the composited session ticket (back to theinspector) to resume the TLS connection, the inspector decrypts theticket and retrieves the session context from it directly. The inspectorthen uses the original session ticket to resume the TLS session. Thisapproach obviates any cache lookup or even the requirement to maintainlocal session cache at the TLS inspector. Rather, in effect thecomposited ticket becomes the cache for the session ticket itself.

As is well-known, it is assumed that the appliance includes a mechanismto enable the MITM process (whether proxy-based or otherwise) to resumethe original connection and to re-connect the original endpoints(without inspecting), e.g., upon a rule match against a servercertificate or otherwise. Session Ticket in TLS support is used for thispurpose.

FIG. 5 depicts a flow diagram showing conventional Session Ticket inTLS, namely, with an inspector 500 that includes a session cache.Familiarity with standard TLS handshaking semantics is presumed. Asshown, the flow diagram in FIG. 5 illustrates the inspector locatedintermediate the TLS client 502 and the TLS server 504. In theconventional TLS handshake flow, client 502 issues a Client Hello to theserver 504. This is step 506. At step 508, the server 504 responds withvarious messages, namely, the Server Hello, the Certificate, theServerKeyExchange, and the ServerHelloDone. The session contextinformation (cipher suites, master key, etc.) is stored by the inspector500 at step 510. At step 512, the client 502 returns to the servervarious messages, namely, the ClientKeyExchange, an optionalChangeCipherSpec, and Finished. Server 504 then responds with anotherset of messages, namely, NewSessionTicket, any response to theChangeCipherSpec message (if sent by the client), and Finished. Thiscompletes the initial TLS handshake. At step 516, the inspector 500stores the new ticket in its local cache. In use, and as depicted atstep 518, application data flows between client 502 and the server 504.The inspector 500 uses the session information in the ticket to decryptpayloads, as depicted at step 520, to perform one or more inspectorfunctions. The inspector also passes the session ticket back to theclient.

One or more operations by the inspector interrupt the session, thusrequiring the ability of the inspector to carry out session resumption.To that end, and as depicted at step 522, it is assumed that the clientissues another Client Hello, this time passing the session ticket. Atstep 524, the inspector performs a lookup for the session ticket in itslocal cache. If the ticket is matched, the inspector 500 issues a newClient Hello to the server, passing the session ticket. This is step526. At step 528, the server 504 responds with various messages, namely,the Server Hello, the Certificate, the optional ChangeCipherSpec, andFinished. At step 530, the client 502 then responds with a set ofmessages, namely, any response to the ChangeCipherSpec message (if sentby the server), and Finished. This completes the follow-on TLS handshakethat would be needed for session resumption. At step 532, the inspector500 obtains the one or more session keys (stored at step 510) from itscache. Typically, there are two session keys, one for each session(client↔inspector, and inspector↔server). As application data is thenpassed between client and server (step 532), the inspector uses thesession keys to decrypt payloads as necessary. This is step 534.

FIG. 6 is similar to FIG. 5, but this drawing depicts the changes to theconventional session caching approach to provide a cacheless mechanismto greatly reduces memory footprint and lookup time to support sessionresumption. This modified technique provides for “cacheless” SessionTicket support in TLS inspection. To this end, the inspector isconfigured such that it no longer maintains the mapping between asession ticket (received from the TLS server) and the session context.Instead, the inspector is configured to cause the TLS client toparticipate in maintaining the session context, in effect on behalf ofthe TLS inspector. This approach obviates any cache lookup or even therequirement to maintain local session cache at the TLS inspector.Rather, in effect the interactions between the inspector and the clientprovide a way for the inspector to offload the caching from its ownsession cache and onto the requesting client, which ends up storing(albeit in an altered form) the session ticket. In effect, the clientbecomes the cache for the session ticket itself.

In operation, when the inspector first receives the session ticket fromthe TLS server, and in lieu of caching it, the inspector generates andissues to the client a composited ticket that includes the originalticket and session context information that contains the session key.The composited ticket (or composited session ticket) preferably isencrypted by the inspector to secure the session information. When theTLS client presents the composited session ticket (back to theinspector) to resume the TLS connection, the inspector decrypts theticket and retrieves the session context from it directly. The inspectorthen uses the original session ticket to resume the TLS session.

The cacheless session ticket support is depicted in FIG. 6. Once again,the inspector 600 is shown positioned intermediate between the TLSclient 602 and the TLS server 604. Unlike FIG. 5, the inspector 600 neednot incorporate a session cache. As in the conventional TLS handshakeflow, client 602 issues a Client Hello to the server 604. This is step606. At step 608, the server 404 responds with various messages, namely,the Server Hello, the Certificate, the ServerKeyExchange, and theServerHelloDone. Once again, the session context information (ciphersuites, master key, etc.) is stored by the inspector 600 at step 610. Atstep 612, the client 602 returns various messages, namely, theClientKeyExchange, an optional ChangeCipherSpec, and Finished. Thistime, however, those messages are intercepted by the inspector insteadof being passed through to the server (as in FIG. 5). At step 614, theserver 604 provides the NewSessionTicket message, an optionalChangeCipherSpec message, and a Finished message. The NewSessionTicketincludes an original session ticket. At step 616, and in lieu of storingthe original session ticket provided by the server 604 (and as in step516 in FIG. 5), the inspector 600 generates a new session ticket,referred to as [A]. Further details of a preferred technique forgenerating the new session ticket are described below. The inspector 600then outputs to the client 602 a set of messages, namely,NewSessionTicket[A], an optional ChangeCipherSpec, and Finished. This isstep 618. The NewSessionTicket[A] message include the new session ticket[A]. At step 620, application data flows between client 602 and server604. The inspector 600 uses the session information in the ticket todecrypt payloads, as depicted at step 622, to perform one or moreinspector functions.

As before, one or more operations by the inspector interrupt thesession, thus requiring the ability of the inspector 600 to carry outsession resumption. To that end, and as depicted at step 624, it isassumed that the client issues another Client Hello, this time passingback to the inspector the new session ticket [A]. At step 626, theinspector 600 decrypts new session ticket [A] to recover the originalsession ticket (referred to as [B]), and to recover the sessioninformation. At step 628, the inspector 600 replaces Ticket [A] withTicket [B] in the Client Hello and, at step 630, the inspector 600 sendsthe Client Hello (with Session Ticket [B] to the server 604. At step632, the server 604 responds with various messages, namely, the ServerHello, the Certificate, the ChangeCipherSpec, and Finished. At step 634,the client 502 then responds with a set of messages, namely, theChangeCipherSpec, and Finished. This completes the follow-on TLShandshake that would be needed for session resumption. At step 636, theinspector 560 obtains the session keys from the session informationextracted from Ticket [A] at step 626. As application data is thenpassed between client and server (step 638), the inspector 600 uses thesession key to decrypt payloads as necessary. This is step 640.

Summarizing, and as can be seen by comparing steps 514, 516 and 524 inFIG. 5 with steps 616, 618 and 626 in FIG. 6, the approach hereinobviates caching the session ticket in the inspector itself. Rather,when the inspector first receives the session ticket from the TLSserver, and in lieu of caching it, the inspector generates and issues tothe client a composited ticket that includes the original ticket andsession context information that contains the session key. Thecomposited ticket (or composited session ticket) preferably is encryptedby the inspector to secure the session information. When the TLS clientpresents the composited session ticket (back to the inspector) to resumethe TLS connection, the inspector decrypts the ticket and retrieves thesession context from it directly. The inspector then uses the originalsession ticket to resume the TLS session to the TLS server.

The following describes a preferred technique for generating the newsession ticket for Session Ticket session resumption. This is step 616in FIG. 6. Preferably, the new session ticket is generated as follows:

Encrypt (Transform (Original Session Ticket, Session Information),Encryption Key) where session Information includes cryptographicinformation such as cipher suite(s), a master key, etc.), the Transformis any method or computation to combine together the identified data,namely, Original Session Ticket, Session Information, and Encrypt refersto any cryptographic algorithm that can protect the new session ticket.A typical Transform may be a concatenation operation, but this is not alimitation, as more complex computational methods may be applied for thetransformation. (Of course, a transformation must have an associatedinverse so that the original data can be recovered). For the encryptionwrapper, a typical solution might utilize public key cryptography, suchthat the Encryption Key is a public key having an associated private orsecret key that is used for decryption when the new session ticket islater received from the client. Thus, and as described above, the newsession ticket is generated by first applying the transform function tothe original session ticket and session context information associatedwith the TLS session, with an encryption function then applied to theresult of the transformation. The result of applying the transform issometimes referred to herein as a “composited” session ticket, or NewSession Ticket. The inspector outputs to the client the encrypted newsession ticket.

When the inspector receives the encrypted New Session Ticket from theclient in the follow-on Client Hello, the session is resumed by theinspector decrypting the ticket to obtain (recover) the Original SessionTicket, Session Information, and then replacing the in the Client Hellowith the original session Ticket. As noted above, preferably thedecryption is carried out using the private key of the public key pairmaintained at the inspector. There are preferably two decryptionoperations, namely: Get_Ticket (Decrypt (New Session Ticket), andGet_SessionInfo (Decrypt (New Session Ticket). If the decryption issuccessful, the decrypted payload should contain the original sessionTicket and the Session Information. The Get_Ticket functionobtains/recovers the Original Session Ticket and Get_SessionInfo obtainsthe session information, such as the master TLS key, necessary todecrypt the payloads.

Transparently Converting TLS Session ID Connection to TLS Session TicketConnection

The above-identified technique for “cacheless” session resumptionprovides significant advantages, but is presupposes that the TLS serverprovides the session ticket. Thus, as it has been described, thetechnique does not work with webservers that are deployed to use SessionID connections. To address this need, the following describes anextension that enables the inspector to transparently switch from usingSession ID to Session Ticket without modifying the existing deployment.Once that switch has occurred, the basic technique described above forthe cacheless session resumption (as modified in the manner describedbelow) can then proceed.

Thus, according to this disclosure, a network-based appliance includes amechanism to enable the appliance to provide TLS inspection with SessionID-based session resumption, but without requiring that a session cachebe maintained in the inspector. To this end, the original session IDreturned from a TLS server is first embedded into a new session ticketgenerated at the inspector and, as a consequence, the Session IDconnection is converted into a Session Ticket connection transparently.As in the Session Ticket embodiment described in FIG. 6, the inspectoritself is configured without a session cache and thus no longermaintains the mapping between a session ticket (now newly-generated atthe inspector, as opposed to being provided by the TLS server) and thesession context. Instead, and like the earlier embodiment, the inspectoris configured to cause the TLS client to participate in maintaining thesession context, in effect on behalf of the TLS inspector.

In operation, when the inspector first receives the session ID from theTLS server, the inspector embeds it into the new session ticket. Neitherthe session ID received from the TLS server nor the new session ticket,however, are cached at the inspector. As with the earlier embodimentinvolving Session Ticket session resumption, the newly-generated sessionticket preferably is encrypted by the inspector to secure the sessioninformation, and the encrypted session ticket is then returned to therequesting client. When the TLS client presents the session ticket (backto the inspector) to resume the TLS connection, the inspector decryptsthe ticket and retrieves the session context from it directly. Theinspector then uses the original session ID (recovered from the sessionticket) to resume the TLS session to the TLS server. This approachobviates any cache lookup or even the requirement to maintain localsession cache at the TLS inspector. Rather, in effect the session ticketgenerated at the inspector (and in which the session ID is saved)becomes the cache for the session ID itself.

As will be described further, the approach herein is to provide a methodthat is operative within an intermediary positioned between a client anda server and that provides a TLS inspection function. Upon receipt fromthe TLS server of a session ID, and instead of caching it in a sessioncache, a new session ticket is generated that include session dataassociated with the client-to-inspector connection, the session ID, andsession data associated with the inspector-to-server connection. Anencryption function is then applied to the new session ticket to securethe session information. The encrypted session ticket is then deliveredto the requesting TLS client. When that ticket is later received backfrom the TLS client, it is decrypted to recover the original sessionticket and the session context information. Using the informationrecovered, the TLS session is then resumed with the TLS server using thesession ID originally received.

FIG. 7 depicts a technique to seamlessly convert an SSL/TLS connectionusing Session ID to a connection using Session Ticket. In thisembodiment, it is assumed that the TLS server uses Session ID resumptionbut that it is desired to use Session Ticket resumption. To address thisproblem, the inspector is configured and operates as shown. Once again,the inspector 700 is shown positioned intermediate between the TLSclient 702 and the TLS server 704. As in the embodiment in FIG. 6, theinspector 700 need not incorporate a session cache. As in theconventional TLS handshake flow, client 702 issues a Client Hello to theserver 704. This is step 706. At step 708, the server 704 responds withvarious messages, namely, the Server Hello, the Certificate, theServerKeyExchange, and the ServerHelloDone. Once again, the sessioncontext information (cipher suites, master key, etc.) is stored by theinspector 700 at step 710. At step 712, the client 702 returns variousmessages, namely, the ClientKeyExchange, an optional ChangeCipherSpec,and Finished. Those messages are intercepted by the inspector instead ofbeing passed through to the server (as in FIG. 5). At step 714, theserver 604, which is using Session ID session resumption, provides theNewSessionID message, an optional ChangeCipherSpec message, and aFinished message. The NewSessionID includes an original session ID.

As noted above, and according to this embodiment, it is desired toconvert the Session ID connection to a Session Ticket connection. Tothis end, and at step 716, a number of operations are carried out. Inparticular, the inspector generates a new session ticket preferablycontaining three (3) components: [A] session data associated with theclient-to-inspector connection, [B] the session ID received from the TLSserver 704, and [C] session data associated with the inspector-to-serverconnection. Neither the session ID originally received nor the sessionticket itself needs to be cached at the inspector. Instead, theinspector encrypts the new session ticket and provides it to therequesting client. In particular, and as depicted at step 718, theinspector 700 outputs to the client 702 a set of messages, namely,NewSessionTicket, an optional ChangeCipherSpec, and Finished. TheNewSessionTicket message include the new session ticket that, in turn,encapsulates the session ID. At step 720, application data flows betweenclient 702 and server 704. The inspector 700 uses the sessioninformation to decrypt payloads, as depicted at step 722, to perform oneor more inspector functions.

As before, one or more operations by the inspector interrupt thesession, thus requiring the ability of the inspector to carry outsession resumption. FIG. 8 depicts the session resumption process.Client, inspector and server are renumbered for convenience, but theseare the same elements from FIG. 7. The process begins at 806, duringwhich the client issues another Client Hello, this time passing back tothe inspector the new session ticket. At step 808, the inspector 600decrypts the session ticket to recover the original components [A], [B]and [C] that were used (in step 716) to create the ticket. To facilitatethe session resumption, at step 810, the inspector 800 creates a ClientHello with the session ID [B]. At step 812, the inspector sends theClient Hello (with session ID [B]) to the server 804. At step 814, theserver 804 responds with various messages, namely, the Server Hello, theCertificate, the ChangeCipherSpec, and Finished. At step 815, the client802 then responds with a set of messages, namely, the ChangeCipherSpec,and Finished. This completes the follow-on TLS handshake that would beneeded for session resumption.

The inspector then enters man-in-the-middle processing loop 816. Theloop is carried out as application data is delivered from the client 802and intercepted by the inspector as depicted at step 818. At step 820,the inspector decrypts the payload using session information [A],performs the inspection, and then re-encrypts the payload using sessioninformation [C]. The application data is then forwarded from theinspector 800 to the server 804 at step 822. At step 824, the converseoperation is depicted. Here, application data received from the server804 is intercepted by the inspector 800. At step 826, the inspector 800decrypts the payload using session information [C], performs theinspection, and then re-encrypts the payload using session information[A]. The application data is then forwarded from the inspector 800 tothe client 804 at step 828 to complete the MITM processing loop. Theloop is repeated for new application data.

Summarizing, for Session ID connection resumption, the approach hereinobviates caching either the session ID or the session ticket in theinspector itself. Rather, when the inspector first receives the sessionID from the TLS server, the inspector generates and issues to the clienta session ticket that includes the original session ID together withsession context information that contains the session data for each ofthe client-to-inspector and inspector-to-server connections (see FIG. 4above). The session ticket preferably is encrypted by the inspector tosecure the session information. When the TLS client presents the sessionticket (back to the inspector) to resume the TLS connection, theinspector decrypts the ticket and retrieves the session ID from itdirectly. The inspector then uses the original session ID to resume theTLS session.

While the techniques have been described in the context of a proxy, thisis not a limitation. Generalizing, the processing described herein maybe carried in any intermediary positioned between client and server. Inone such embodiment, the intermediary provides transparent inlinecontent inspection and modification. The client and server are computingentities (endpoints). The intermediary may be configured as a physicaldevice, a virtual device, or some combination thereof. It can be usedfor a number of different applications including, without limitation,the decrypting of encrypted (SSL/TLS) sessions so that securityinspection can be performed in the manner previously described.

Representative intermediary devices include, without limitation, reverseSSL/TLS proxies, reverse HTTPS proxies, SSL decryptors, and IPS. Theapproach herein may be used with any device that implements SSL/TLSsession resumption, whether Session ID connection-based, or SessionTicket connection-based.

While a preferred operating environment and use case (a secureappliance) has been described, the techniques herein may be used in anyother operating environment in which it is desired to intercept,decrypt, inspect and/or modify (rewrite) network traffic to and/or froma computing system or device.

As has been described, the functionality described above may beimplemented as a standalone approach, e.g., a software-based functionexecuted by a processor, or it may be available as a service (includingas a web service via a SOAP/XML interface). The particular hardware andsoftware implementation details described herein are merely forillustrative purposes are not meant to limit the scope of the describedsubject matter.

More generally, computing devices within the context of the disclosedsubject matter are each a data processing system (such as shown in FIG.2) comprising hardware and software, and these entities communicate withone another over a network, such as the Internet, an intranet, anextranet, a private network, or any other communications medium or link.The applications on the data processing system provide native supportfor Web and other known services and protocols including, withoutlimitation, support for HTTP, FTP, SMTP, SOAP, XML, WSDL, UDDI, andWSFL, among others. Information regarding SOAP, WSDL, UDDI and WSFL isavailable from the World Wide Web Consortium (W3C), which is responsiblefor developing and maintaining these standards; further informationregarding HTTP, FTP, SMTP and XML is available from Internet EngineeringTask Force (IETF). Familiarity with these known standards and protocolsis presumed.

The techniques described herein may be implemented in or in conjunctionwith various client-side architectures (e.g., firewalls, NAT devices),and in or in conjunction with various server-side architecturesincluding simple n-tier architectures, web portals, federated systems,and the like. The techniques herein may be practiced in aloosely-coupled server (including a “cloud”-based) environment.

Still more generally, the subject matter described herein can take theform of an entirely hardware embodiment, an entirely software embodimentor an embodiment containing both hardware and software elements. In apreferred embodiment, the trusted platform module function isimplemented in software, which includes but is not limited to firmware,resident software, microcode, and the like. Furthermore, the downloadand delete interfaces and functionality can take the form of a computerprogram product accessible from a computer-usable or computer-readablemedium providing program code for use by or in connection with acomputer or any instruction execution system. For the purposes of thisdescription, a computer-usable or computer readable medium can be anyapparatus that can contain or store the program for use by or inconnection with the instruction execution system, apparatus, or device.The medium can be an electronic, magnetic, optical, electromagnetic,infrared, or a semiconductor system (or apparatus or device). Examplesof a computer-readable medium include a semiconductor or solid statememory, magnetic tape, a removable computer diskette, a random accessmemory (RAM), a read-only memory (ROM), a rigid magnetic disk and anoptical disk. Current examples of optical disks include compactdisk-read only memory (CD-ROM), compact disk-read/write (CD-R/W) andDVD. The computer-readable medium is a tangible, non-transitory item.

The computer program product may be a product having programinstructions (or program code) to implement one or more of the describedfunctions. Those instructions or code may be stored in a non-transitorycomputer readable storage medium in a data processing system after beingdownloaded over a network from a remote data processing system. Or,those instructions or code may be stored in a computer readable storagemedium in a server data processing system and adapted to be downloadedover a network to a remote data processing system for use in a computerreadable storage medium within the remote system.

In a representative embodiment, the interfaces and utility areimplemented in a special purpose computing platform, preferably insoftware executed by one or more processors. The software is maintainedin one or more data stores or memories associated with the one or moreprocessors, and the software may be implemented as one or more computerprograms. Collectively, this special-purpose hardware and softwarecomprises the functionality described above.

While the above describes a particular order of operations performed bycertain embodiments of the invention, it should be understood that suchorder is exemplary, as alternative embodiments may perform theoperations in a different order, combine certain operations, overlapcertain operations, or the like. References in the specification to agiven embodiment indicate that the embodiment described may include aparticular feature, structure, or characteristic, but every embodimentmay not necessarily include the particular feature, structure, orcharacteristic.

Finally, while given components of the system have been describedseparately, one of ordinary skill will appreciate that some of thefunctions may be combined or shared in given instructions, programsequences, code portions, and the like.

The appliance is not limited to any particular type. The above-describedoperation may likewise be used in association with any known techniqueor mechanism that itself is used to intercept, decrypt, inspect, modify,rewrite and re-encrypt data from any machine, irrespective of themachine's physical configuration.

The techniques herein generally provide for the above-describedimprovements to a technology or technical field, as well as the specifictechnological improvements to network-connected secure appliances, suchas described above.

The notion of providing a TLS inspector without a session cache (the“cacheless” nature of the technique) does not necessarily require thatthe TLS inspector be configured physically without such a cache,although that will be the usual configuration. A TLS inspector that hasa session cache that is not utilized or otherwise bypassed is within thescope of the disclosed subject matter, which is claimed below. Thus, asused herein “cacheless” means that a session cache either is omitted or,if present, not utilized.

Having described our invention, what we claim is as follows:
 1. A methodoperative within an intermediary positioned between a Transport LayerSecurity (TLS) client and a TLS server and that provides a TLSinspection function during a TLS session, comprising: upon receipt fromthe TLS server of a session ID associated with a session ID connection,converting the session ID connection to a session ticket connection bygenerating a new session ticket that includes the session ID; applyingan encryption function to the new session ticket; outputting to the TLSclient the encrypted new session ticket; upon receipt from the TLSclient of the encrypted new session ticket, decrypting the encrypted newsession ticket to recover the session ID and session contextinformation; and using the recovered session ID and the session contextinformation to resume the TLS session.
 2. The method as described inclaim 1 wherein the new session ticket is generated by concatenatinginto the new session ticket first session data associated with a firstconnection between the client and the intermediary, the session ID, andsecond session data associated with a second connection between theintermediary and the server.
 3. The method as described in claim 2wherein the session context information comprises the first and secondsession data.
 4. The method as described in claim 1 wherein theencrypted new session ticket is received from the TLS client in a clienthello message.
 5. The method as described in claim 3 wherein the TLSsession is resumed by generating a new client hello message, includingin the new client hello message the session ID recovered from decryptingthe encrypted new session ticket, and forwarding the new client hellomessage to the TLS server.
 6. The method as described in claim 1 whereinthe new session ticket is generated and the encrypted new session ticketoutput in lieu of caching the session ID or the new session ticket in asession cache.
 7. An apparatus positioned between a Transport LayerSecurity (TLS) client and a TLS server and that provides a TLSinspection function during a TLS session, comprising: a processor;computer memory holding computer program instructions executed by theprocessor, the computer program instructions comprising program codeconfigured: upon receipt from the TLS server of a session ID associatedwith a session ID connection, convert the session ID connection to asession ticket connection by generating a new session ticket thatincludes the session ID; apply an encryption function to the new sessionticket; output to the TLS client the encrypted new session ticket; uponreceipt from the TLS client of the encrypted new session ticket, decryptthe encrypted new session ticket to recover the session ID and sessioncontext information; and use the recovered session ID and the sessioncontext information to resume the TLS session.
 8. The apparatus asdescribed in claim 7 wherein the program code generating the new sessionticket includes program code configured to concatenate into the newsession ticket first session data associated with a first connectionbetween the client and the intermediary, the session ID, and secondsession data associated with a second connection between theintermediary and the server.
 9. The apparatus as described in claim 8wherein the session context information comprises the first and secondsession data.
 10. The apparatus as described in claim 7 wherein theencrypted new session ticket is received from the TLS client in a clienthello message.
 11. The apparatus as described in claim 10 wherein theprogram code to resume the TLS session includes program code configuredto receive the new client hello message, to include in the new clienthello message the session ID recovered from decrypting the encrypted newsession ticket, and to forward the new client hello message to the TLSserver.
 12. The apparatus as described in claim 7 wherein the newsession ticket is generated and the encrypted new session ticket outputin lieu of caching the session ID or the new session ticket in a sessioncache.
 13. A computer program product in a non-transitory computerreadable medium for use in a data processing system positioned between aTransport Layer Security (TLS) client and a TLS server and that providesa TLS inspection function during a TLS session, the computer programproduct holding computer program instructions executed by the dataprocessing system, the computer program instructions comprising programcode configured: upon receipt from the TLS server of a session IDassociated with a session ID connection, convert the session IDconnection to a session ticket connection by generating a new sessionticket that includes the session ID; apply an encryption function to thenew session ticket; output to the TLS client the encrypted new sessionticket; upon receipt from the TLS client of the encrypted new sessionticket, decrypt the encrypted new session ticket to recover the sessionID and session context information; and use the recovered session ID andthe session context information to resume the TLS session.
 14. Thecomputer program product as described in claim 13 wherein the programcode generating the new session ticket includes program code configuredto concatenate into the new session ticket first session data associatedwith a first connection between the client and the intermediary, thesession ID, and second session data associated with a second connectionbetween the intermediary and the server.
 15. The computer programproduct as described in claim 14 wherein the session context informationcomprises the first and second session data.
 16. The computer programproduct as described in claim 13 wherein the encrypted new sessionticket is received from the TLS client in a client hello message. 17.The computer program product as described in claim 16 wherein theprogram code to resume the TLS session includes program code configuredto receive the new client hello message, to include in the new clienthello message the session ID recovered from decrypting the encrypted newsession ticket, and to forward the new client hello message to the TLSserver.
 18. The computer program product as described in claim 13wherein the new session ticket is generated and the encrypted newsession ticket output in lieu of caching the session ID or the newsession ticket in a session cache.
 19. An apparatus positioned between aTransport Layer Security (TLS) client and a TLS server, comprising: ahardware processor, and computer memory holding computer programinstructions configured as a cacheless TLS inspector mechanism to:receive a session ID from the TLS server and, in response: (a) generatea session ticket that includes the session ID, and (b) output to the TLSclient the session ticket in lieu of caching the session ID or thesession ticket, and receive the session ticket from the TLS client and,in response: (c) recover the session ID, and (d) use the recoveredsession ID to resume a session with the TLS server.